package com.louis.util;

public class StringUtil {

	public static boolean hasText(String text) {
		return text != null && !text.trim().equals("");
	}

	public static String[] split(String text, String regex) {
		if (hasText(text)) {
			return text.split(regex);
		}
		return null;
	}
}
